//
//  ZCFreeCell.m
//  zctx
//
//  Created by apple on 16/1/20.
//  Copyright © 2016年 sanliang. All rights reserved.
//

#import "ZCFreeCell.h"

@implementation ZCFreeCell

- (void)awakeFromNib {
    // Initialization code
    
    self.chaContentLable.textColor = [UIColor colorWithHexString:@"#8a8a8a"];
    self.zuiContentLable.textColor = [UIColor colorWithHexString:@"#8a8a8a"];
    self.faContentLable.textColor = [UIColor colorWithHexString:@"#8a8a8a"];
    self.canContentLable.textColor = [UIColor colorWithHexString:@"#8a8a8a"];
    
    self.lineone.backgroundColor = RGB(236, 237, 238);
    self.lineTwo.backgroundColor = RGB(236, 237, 238);
    self.oneLableHeight.constant = 0.5;
    self.twoLableWidth.constant = 0.5;
    
    UITapGestureRecognizer *chagest = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(CickFree:)];
    [self.chaView addGestureRecognizer:chagest];
    
    UITapGestureRecognizer *zuigest = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(CickFree:)];
    [self.zuiView addGestureRecognizer:zuigest];
    
    UITapGestureRecognizer *fagest = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(CickFree:)];
    [self.faView addGestureRecognizer:fagest];
    
    UITapGestureRecognizer *cangest = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(CickFree:)];
    [self.canView addGestureRecognizer:cangest];
}

-(void)CickFree:(UITapGestureRecognizer *)sender{
    NSInteger index = sender.view.tag;
    if (_delegate && [_delegate respondsToSelector:@selector(didSelectDiscountIndex:)]) {
        [_delegate didSelectDiscountIndex:index];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
